package com.sh.data.engine.domain.workspace.index.model.mapper;

import com.sh.data.engine.domain.workspace.index.model.domain.ProjectDomain;
import com.sh.data.engine.domain.workspace.manager.model.param.ProjectSaveParam;
import com.sh.data.engine.repository.dao.workspace.index.entity.ProjectEntity;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface ProjectEntityMapper {

    ProjectEntity saveParamToEntity(ProjectSaveParam param);

    ProjectEntity map(ProjectDomain entity);

    List<ProjectEntity> map(List<ProjectDomain> projectEntities);
}
